#include "Matrix2x2.h"

int Matrix2x2::Determinant(void)
{
	int det = 1;

	for(int i = 0; i < 2; i++)
		det *= (*this)(i,i);

	return det;
}

int Matrix2x2::Trace(void)
{
	int trace = 0;

	for(int i = 0; i < 2; i++)
		trace += (*this)(i,i);

	return trace;
}